package com.vitas.coin.util

import android.widget.FrameLayout
import android.widget.ScrollView
import androidx.fragment.app.FragmentActivity
import com.snap.base.ktx.adBanner
import com.snap.base.ktx.adInterstitial
import com.snap.base.ktx.adInterstitialDouble
import com.snap.base.ktx.adNative
import com.snap.base.ktx.adReward
import com.snap.base.ktx.isEnableConfigWithKey
import com.snap.base.ktx.isPure
import com.snap.base.util.BaseUtil
import com.vitas.coin.constant.AdConfig

class AdUtil {

    companion object {

        fun adNative(context: FragmentActivity, frameLayout: FrameLayout) {
            BaseUtil.adNative(context, frameLayout)
        }

        fun adInsert(context: FragmentActivity) {
            BaseUtil.adInterstitial(context)
        }

        fun adInsertDouble(context: FragmentActivity) {
            BaseUtil.adInterstitialDouble(context)
        }


        fun adBanner(context: FragmentActivity, frameLayout: FrameLayout) {
            BaseUtil.adBanner(context, frameLayout)
        }

        fun adReward(context: FragmentActivity,finish:()->Unit) {
            BaseUtil.adReward(context, finish = finish)
        }

    }
}